/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.brain.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户答题操作记录Entity
 * @author 程展峰
 * @version 2021-09-22
 */
public class BOperRecordDetial extends DataEntity<BOperRecordDetial> {
	
	private static final long serialVersionUID = 1L;
	private BUserOrprInfo oprId;		// 操作记录ID 父类
	private String stem;		// 题干
	private String exerciseId;		// 题目ID
	private String exercType;		// 题型
	private Date useage;		// 耗时
	private Integer score;		// 得分
	private String iscorrect;		// 是否正确 0 否 1是
	private String answer;		// 答案
	private String answerId;		// 答案ID
	
	public BOperRecordDetial() {
		super();
	}

	public BOperRecordDetial(String id){
		super(id);
	}

	public BOperRecordDetial(BUserOrprInfo oprId){
		this.oprId = oprId;
	}

	@Length(min=0, max=64, message="操作记录ID长度必须介于 0 和 64 之间")
	public BUserOrprInfo getOprId() {
		return oprId;
	}

	public void setOprId(BUserOrprInfo oprId) {
		this.oprId = oprId;
	}
	
	@Length(min=0, max=255, message="题干长度必须介于 0 和 255 之间")
	public String getStem() {
		return stem;
	}

	public void setStem(String stem) {
		this.stem = stem;
	}
	
	@Length(min=0, max=64, message="题目ID长度必须介于 0 和 64 之间")
	public String getExerciseId() {
		return exerciseId;
	}

	public void setExerciseId(String exerciseId) {
		this.exerciseId = exerciseId;
	}
	
	@Length(min=0, max=255, message="题型长度必须介于 0 和 255 之间")
	public String getExercType() {
		return exercType;
	}

	public void setExercType(String exercType) {
		this.exercType = exercType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUseage() {
		return useage;
	}

	public void setUseage(Date useage) {
		this.useage = useage;
	}
	
	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}
	
	@Length(min=0, max=1, message="是否正确 0 否 1是长度必须介于 0 和 1 之间")
	public String getIscorrect() {
		return iscorrect;
	}

	public void setIscorrect(String iscorrect) {
		this.iscorrect = iscorrect;
	}
	
	@Length(min=0, max=255, message="答案长度必须介于 0 和 255 之间")
	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	@Length(min=0, max=64, message="答案ID长度必须介于 0 和 64 之间")
	public String getAnswerId() {
		return answerId;
	}

	public void setAnswerId(String answerId) {
		this.answerId = answerId;
	}
	
}